﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<QLDAOL.ModelView.InBoxModel>" %>
<%@Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor"%>
<script src="../../Scripts/jquery-1.7.js" type="text/javascript"></script>

<p>Nội dung mail:</p>
<table>
<tr>
<td>Người gửi :</td>
<td colspan="2"><%= ViewData["SendID"]%></td>
</tr>
<tr>
<td>Người nhận:</td>
<td colspan="2"><%= ViewData["ReciveID"] %> </td>
</tr>
<tr>
<td>Tiêu đề:</td>
<td colspan="2"><%= ViewData["Title"]%></td>
</tr>
<tr>
<td>Nội dung :</td>
</tr>
<tr>
<td></td>
    <td colspan="2"><div id="Des" style="background:gray; width:500px;height:300px;"> <%= ViewData["Des"]%> </div></td>
</tr>
<tr>
<td>Thơi gian gửi:</td>
<td colspan="2"><%=  ViewData["Date"]%></td>
</tr>
<tr>
<td><input type="button" OnClick="javascript: initCKEditor();" value="Gửi trả lời"  /></td>

</tr>
</table>
<br />


<div id="div_reply" style=" display:none">
	<% using (Html.BeginForm(null, null, FormMethod.Post, new { id = "formreply" })) 
{%>
                  
     <table>
     <tr>
      <td>
       <label>Tiêu đề</label>
      </td>
       <td>
               <%: Html.TextBoxFor(m => m.title, new { @class = "required" })%>
               
         </td>
     </tr>
     <tr>
      <td>
       <label>Người nhận</label>
      </td>
       <td>
               <%: Html.TextBoxFor(m => m.username, new { @class = "required" })%>
            
         </td>
     </tr>
     <tr>
      <td>
       <label>Nội dung</label>
      </td>
       <td>
               <%: Html.TextAreaFor(m => m.Description, new { id = "Description" , @class = "required" })%>
            
                 
         </td>
     </tr>
     <tr>
        <td>
           <input type="submit" value="Gửi trả lời" id="btn_reply" />
        </td>
     </tr>
     </table>
     <%} %>
   
     </div>
 


